home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head><script language="JavaScript">
-
- <!-- Hide the script from old browsers --
-
- //======================================================
- // Java Script code by Java Script It! www.computan.on.ca/~todd/JavaScriptIt!
- //======================================================
- var cell=-1;
- var bnumb = navigator.appVersion;
- var rel = bnumb.substring( 0 , 2 );
- var bname = navigator.appName;
- bgood=0;
-
- test ()
-
- function test ( ) {
- if ((parseInt( rel ) >= 3.0 && bname=="Netscape") || (parseInt( rel ) >= 4.0 && bname=="Microsoft Internet Explorer"))load ( )
- }
-
- function load ( ) {
- bgood=1;
- aImage= new Array (3)aTime= new Array (3)for (i=0; i<4; i++) {aImage[i] = new Image ()}aImage[0].src = "js-iconw.gif"aImage[1].src = "js-iconb90.gif"aImage[2].src = "js-iconw180.gif"aImage[3].src = "js-iconb270.gif"aTime[0]= 1000aTime[1]= 500aTime[2]= 500aTime[3]= 500ani ();}var cnt= 3;var i=0function ani () {
- cell=cell+1;
- if (cell==0) setTimeout ("ani ()",aTime[cell]);
- else if (cell >0 && cell <= cnt) {
- document.images[i].src=aImage[cell].src;
- setTimeout ("ani ()",aTime[cell]);
- }
- else if (cell >cnt) {
- document.images[i].src=aImage[0].src;
- cell=-1;
- ani ();
- }
- }
-
- //end hide-->
-
- </script>
-
- <title>Animation</title>
- </head>
-
- <body bgColor="#FFFFFF" text="000000">
-
- <div align=center><font size=6 font="Arial"><b>Animation</b></font></div><p>
-
- Below is an example of a cell animation (a very basic one) that Java Script It! can perform.<p>
-
- <img alt="Java Script It!" align=middle src="js-iconw.gif" border=0><p>
-
- <b>Browser Compatibility</b><br>
- ò Works in Netscape Navigator 3.0 but some bugs are present<br>
- ò Works fully in Netscape Navigator 4.0 and higher<br>
- ò Does not work in Microsoft Internet Explorer 3.xx<br>
- ò Works fully in Microsoft Internet Explorer 4.0 and higher<br>
- ò No errors should occur in browsers that do not understand the Animation code
-
- </body>
-
- </html>
-
-
-